<script src="./Promise.js"></script>
<script>

let p = new Promise((resolve, reject) => {
    setTimeout(() => {
        resolve(1)
    },1000)
})
p.then(
    value => {console.log('success1',value)},
    reason => {console.log('failure1',reason)}
)
p.then(
    value => {console.log('success2',value)},
    reason => {console.log('failure2',reason)}
)

</script>